package com.meituan.sdk.model.ddzh.technician.technicianTechinfoQuerytagtree;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 查询手艺人服务项目/岗位
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/technician/techInfo/querytagtree",
    businessId = 58,
    apiVersion = "10004",
    apiName = "technician_techinfo_querytagtree",
    needAuth = true
)
public class TechnicianTechinfoQuerytagtreeRequest implements MeituanRequest<TechnicianTechinfoQuerytagtreeResponse> {
    /**
    * <p data-diff-id="ct-diff-id-a03a99a9-6b19-4727-b14f-43bd7474b35b">查询场景：岗位固定传massagePosition，服务项目固定传massageServiceProject</p>
    */
    @NotBlank(message = "sceneName不能为空")
    @SerializedName("sceneName")
    private String sceneName;

    public String getSceneName() {
        return sceneName;
    }
    public void setSceneName(String sceneName) {
        this.sceneName = sceneName;
    }


    @Override
    public MeituanResponse<TechnicianTechinfoQuerytagtreeResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<TechnicianTechinfoQuerytagtreeResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "TechnicianTechinfoQuerytagtreeRequest{" + "sceneName=" + sceneName + "}";
    }
}
